﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Content/LogIn.Master" Inherits="System.Web.Mvc.ViewPage<SCS.Core.Models.Collection.LoginCollection>" %>
<%@ Import Namespace="SCS.Core" %>
<%@ Import Namespace="SCS.Core.Models" %>
<%@ Import Namespace="SCSService" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SC master
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <script src="/Scripts/MicrosoftAjax.js" type="text/javascript"></script>
    <script src="/Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="/Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>

    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm()) {%>
    <h2 class="header-login">Đăng nhập</h2>
    <div id="box-login">
        <p>
		    <label class="req"> Tên đăng nhập </label>
		    <br/>
		    <%= Html.TextBoxFor(m => m.UserName) %> <%= Html.ValidationMessageFor(m => m.UserName) %>
	    </p>
        <p>
		    <label class="req"> Mật khẩu </label>
		    <br/>
		    <%= Html.PasswordFor(m => m.Password) %> <%= Html.ValidationMessageFor(m => m.Password) %>
	    </p>
        <p class="fl">
		    <%=Html.CheckBox("chkRemember",true)%>
		    <label class="rem"> Duy trì trạng thái đăng nhập </label>
	    </p>
        <p class="fr">
            <input type="submit" value="Đăng nhập" class="button themed" id="login"/>
	    </p>
        <div class="clear"></div>  
    </div>
    
<% string str = Request.Url.ToString();
   int siteGuid=1;
   siteGuid = int.Parse(Request.Url.PathAndQuery.Split('/')[1]);
%>

    <a class="forgot" href="/<% Response.Write(Request.Url.PathAndQuery.Split('/')[1]); %>/<% Response.Write(Request.Url.PathAndQuery.Split('/')[2]); %>/User/ForgotPassword"> Quên mật khẩu? </a> 
    <%if (ViewData["error"] != null) { %>
        <span class="message information"><%=ViewData["error"]%></span>
    <%} %>      
    <% } %>
    <script language="JavaScript" type="text/javascript">
        document.getElementById("UserName").focus();
</script>
</asp:Content>
